package br.com.fatecpg.operon;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import java.sql.ResultSet;
import java.sql.SQLException;
import javax.swing.JOptionPane;

public class Conexao {
    public static Connection con;
    public static void Conectar(String usuário, String senha) throws ClassNotFoundException, SQLException{
       
            Class.forName("oracle.jdbc.driver.OracleDriver");
            String url="jdbc:oracle:thin:@192.168.10.21:1521:XE";
            con=java.sql.DriverManager.getConnection(url,usuário,senha);
    }
        
    public static void Desconectar() throws SQLException{
       con.close();
    }

    
}
